<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var arr = [33,90,89,66,64,86,55,98,96,77];
        // 计算平均成绩
        var sum = 0;
        for (var i = 0; i <= arr.length-1; i++) {
            sum += arr[i];
        }
        var avg = sum / arr.length;
        // 大于等于平均成绩的人数
        var n = 0;
        for (var i = 0; i <= arr.length-1; i++) {
            if (arr[i] >= avg) {
                n++;
            }
        }
        console.log("平均成绩是" + avg);
        console.log("成绩大于等于平均成绩的人数为" + n);
    </script>
</head>
<body>
    
</body>
</html>